

            


            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
     public partial class TicketMessages
     {

            //Write any additional methods or properties here 
            //Don't modify any genrated classes



         List<TicketImages> _lstTicketImages = null;

         public List<TicketImages> lstTicketImages
         {
             get {

                 if (_lstTicketImages == null)
                 {
                     TicketImagesDB objTicketImagesDB = new TicketImagesDB(ConnectionStrings.LMS);
                     _lstTicketImages = objTicketImagesDB.getTicketImagesByMessageID(ID);

                 }


                 return _lstTicketImages; }
             
         }



         Ticket _objTicket = null;

         public Ticket objTicket
         {
             get {

                 if (_objTicket == null)
                 {
                     TicketDB objTicketDB = new TicketDB(ConnectionStrings.LMS);
                     List<Ticket> lstTicket = objTicketDB.getTicketByID(TicketID);
                     if (lstTicket.Count == 0)
                         return new Ticket();

                     _objTicket = lstTicket[0];
                 }
                 
                 
                 
                 
                 
                 return _objTicket; }
            
         }


     }
}
